<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>行旅旅行网</title>
<script type="text/javascript">
	function validate()
	{
	  var uname=document.getElementById("username");
	  var upwd=document.getElementById("userpwd");
	  if(uname.value=="")
 	  {
 	    alert("用户名不能为空！");
            uname.focus();
 	    return false;
	  }
	  if(upwd.value=="")
	  {
 	    alert("密码不能为空！");
 	    upwd.focus();
 	    return false;
	  }

	}
	</script>
<style type="text/css">
body {
 background:url(im/澳大利亚.jpg);

}
</style>
</head>
<body>
</br></br></br></br></br>

<div style="position: absolute; left: 213px; top: 136px;"><img src="im/欧洲.jpg" width="176" height="151"></div></div>
<div style="position: absolute; left: 807px; top: 163px;">
<form name="form1" onsubmit="return validate()"  action="main.html">
<table width="280" height="147" align=right  >
    <tr>
    <td width="80" align="right" nowrap style="color:#000">用户名：<td width="163"><input type="text" id="username" />
  </tr>
  <tr>
    <td align="right" style="color:#000">密码：<td><input type="password" id="userpwd" />
  </tr>
  
  
</table>
<div style="position: absolute; left: 52px; top: 149px;">
<tr>
    <td height="49"  align="center"><input type="submit" value="登录" style="height:40px; width:80px;"/>
 </tr>
</div>
 <div style="position: absolute; left: 169px; top: 149px;"><a href="register.html"><input type="button" value="注册" style="height:40px; width:80px;"/></a></div>
</form>
</div>

</form>
</body>
</html>
